import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter);
const originalPush = VueRouter.prototype.push
// VueRouter.prototype.push = function push(location) {
//   return originalPush.call(this, location).catch(err => err)
// }

const routes = [
    // 指标介绍
    //四维操盘-----拼音
    {
        path: '/seQsdy',
        name: 'seQsdy',
        component: ()=> import("../views/seQsdy.vue"),
        meta: {
            title: '趋势大研'
        }
    },
    {
        // redirect: "/seDkjc",
        path: '/seDkjc',
        name: 'seDkjc',
        component: ()=> import("../views/seDkjc.vue"),
        meta: {
            title: '多空决策'
        }
    }, 
    {
        path: '/seZlcj',
        name: 'seZlcj',
        component: ()=> import("../views/seZlcj.vue"),
        meta: {
            title: '主力突击'
        }
    }, 
    {
        path: '/seMmxf',
        name: 'seMmxf',
        component: ()=> import("../views/seMmxf.vue"),
        meta: {
            title: '买卖先锋'
        }
    }, 
    {
        path: '/seSwcp',
        name: 'seSwcp',
        component: ()=> import("../views/seSwcp.vue"),
        meta: {
            title: '买卖先锋'
        }
    }, 
    //大势智妍-----拼音
    {
        path: '/dsQsdy',
        name: 'dsQsdy',
        component: ()=> import("../views/dsQsdy.vue"),
        meta: {
            title: '趋势大研'
        }
    }, 
    {
        path: '/dsDscp',
        name: 'dsDscp',
        component: ()=> import("../views/dsDscp.vue"),
        meta: {
            title: '动能临界'
        }
    }, 
    {
        path: '/dsDnlj',
        name: 'dsDnlj',
        component: ()=> import("../views/dsDnlj.vue"),
        meta: {
            title: '大势操盘'
        }
    }, 
    {
        path: '/dsDszy',
        name: 'dsDszy',
        component: ()=> import("../views/dsDszy.vue"),
        meta: {
            title: '大势智妍'
        }
    }, 
    //短线跟庄-----拼音
    {
        path: '/dxDxgz',
        name: 'dxDxgz',
        component: ()=> import("../views/dxDxgz.vue"),
        meta: {
            title: '短线跟庄'
        }
    }, 
    {
        path: '/dxDtnl',
        name: 'dxDtnl',
        component: ()=> import("../views/dxDtnl.vue"),
        meta: {
            title: '动态量能'
        }
    }, 
    {
        path: '/dxZlcm',
        name: 'dxZlcm',
        component: ()=> import("../views/dxZlcm.vue"),
        meta: {
            title: '主力筹码'
        }
    }, 
    {
        path: '/dxQsqf',
        name: 'dxQsqf',
        component: ()=> import("../views/dxQsqf.vue"),
        meta: {
            title: '强势起飞'
        }
    }, 
    {
        path: '/dxDx',
        name: 'dxDx',
        component: ()=> import("../views/dxDx.vue"),
        meta: {
            title: '短线跟庄平台'
        }
    }, 
    //神奇波段-----拼音
    {
        path: '/sqSqbd',
        name: 'sqSqbd',
        component: ()=> import("../views/sqSqbd.vue"),
        meta: {
            title: '神奇波段'
        }
    }, 
    {
        path: '/sqBhln',
        name: 'sqBhln',
        component: ()=> import("../views/sqBhln.vue"),
        meta: {
            title: '冰火量能'
        }
    }, 
    {
        path: '/sqGzld',
        name: 'sqGzld',
        component: ()=> import("../views/sqGzld.vue"),
        meta: {
            title: '跟庄雷达'
        }
    }, 
    {
        path: '/sqSq',
        name: 'sqSq',
        component: ()=> import("../views/sqSq.vue"),
        meta: {
            title: '神奇波段平台'
        }
    }, 
    //趋势驭龙-----拼音
    {
        path: '/qsLlps',
        name: 'qsLlps',
        component: ()=> import("../views/qsLlps.vue"),
        meta: {
            title: '龙鳞判势'
        }
    }, 
    {
        path: '/qsSlby',
        name: 'qsSlby',
        component: ()=> import("../views/qsSlby.vue"),
        meta: {
            title: '双龙博弈'
        }
    }, 
    {
        path: '/qsLfyt',
        name: 'qsLfyt',
        component: ()=> import("../views/qsLfyt.vue"),
        meta: {
            title: '龙凤云图'
        }
    }, 
    {
        path: '/qsQscy',
        name: 'qsQscy',
        component: ()=> import("../views/qsQscy.vue"),
        meta: {
            title: '趋势长盈'
        }
    }, 
    {
        path: '/qsQl',
        name: 'qsQl',
        component: ()=> import("../views/qsQl.vue"),
        meta: {
            title: '趋势擒龙'
        }
    }, 
    //驭龙AI-----拼音
    {
        path: '/ylYlfk',
        name: 'ylYlfk',
        component: ()=> import("../views/ylYlfk.vue"),
        meta: {
            title: '风控'
        }
    }, 
    {
        path: '/ylYlcw',
        name: 'ylYlcw',
        component: ()=> import("../views/ylYlcw.vue"),
        meta: {
            title: '仓位'
        }
    }, 
    {
        path: '/ylYlzl',
        name: 'ylYlzl',
        component: ()=> import("../views/ylYlzl.vue"),
        meta: {
            title: '主力'
        }
    }, 
    {
        path: '/ylAI',
        name: 'ylAI',
        component: ()=> import("../views/ylAI.vue"),
        meta: {
            title: '主力'
        }
    }, 
    // 辅助指标-----拼音
    {
        path: '/fzjgnl',
        name: 'fzjgnl',
        component: ()=> import("../views/fzjgnl.vue"),
        meta: {
            title: '机构能量'
        }
    }, 
    {
        path: '/fznxtj',
        name: 'fznxtj',
        component: ()=> import("../views/fznxtj.vue"),
        meta: {
            title: '牛熊天玑'
        }
    }, 

];
const router = new VueRouter({
    linkActiveClass: 'active',
    base: process.env.BASE_URL,
    routes
});
//路由后置钩子
router.afterEach((to, from) => {
    //设置头部标题
    if (to.meta.title) document.title = to.meta.title;
});
export default router;